<div class="col-md-12">

<!-- BEGIN BORDERED TABLE PORTLET-->
<div class="portlet">
	<div class="portlet-title">
		<div class="caption"> <i class="fa fa-eye"></i><?= __('Thông tin Danh Mục'); ?> </div>
		<div class="tools"> </div>
	</div>
	<div class="portlet-body form">
		<form class="form-horizontal" role="form">
		<div class="form-body">
			<h2 class="margin-bottom-20"> <?= $info[$als]['name'] ?> </h2>
			<h3 class="form-section"><?= __('Chi Tiết');?></h3>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Tên'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static"><b> <?= $info[$als]['name'] ?> </b></p>
						</div>
					</div>
				</div>

				<!--<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Tên gọi khác'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static"> <b><?= $info[$als]['als'] ?> </b></p>
						</div>
					</div>
				</div>-->

				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Tiêu đề website'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static"> <?= !empty($info[$als]['web_title']) ? '<b>' . $info[$als]['web_title']. '</b>' : '<i>' . __('Không có') . '</i>' ?> </p>
						</div>
					</div>
				</div>

				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Thứ tự'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static"> <b><?= $info[$als]['sort'] ?> </b></p>
						</div>
					</div>
				</div>

				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Trạng thái'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static"> <b><?= @$status[$info[$als]['status']] ;?> </b></p>
						</div>
					</div>
				</div>

				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Danh mục cha'); ?>:</label>
						<div class="col-md-9">
							<p class="form-control-static">
								<?php if(!empty($info[$als]['parent_name'])): ?>
								<a href="<?= $this->webroot . 'admin/categories/info/' .$info[$als]['parent_id'] ?>"><b><?= $info[$als]['parent_name'] ?></b></a>
								<?php else: ?>
								<i><?= __('Không có'); ?></i>
								<?php endif; ?>
							</p>
						</div>
					</div>
				</div>

				<div class="col-md-6">
					<div class="form-group">
						<label class="control-label col-md-3"><?= __('Danh mục con'); ?>:</label>
						<div class="col-md-9">
							<?php if(count($childs) > 0) :?>
							<ul>
							<?php foreach($childs as $c): ?>
								<li><a href="<?= $this->webroot . 'admin/categories/info/' . $c[$als]['id'] ?>"><p class="form-control-static"><b><?= $c[$als]['name'] ?></b></p></a></li>
							<?php endforeach; ?>
							</ul>
							<?php else: ?>
							<p class="form-control-static"><i><?= __('Không có'); ?></i></p>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
			
			<?php if($info[$als]['is_desc']):?>
			<h3 class="form-section"><?= __('Miêu tả');?></h3>
			<div class="row">
				<div class="col-md-12">
					<?= $info[$als]['desc'] ?>
				</div>
			</div>
			<?php endif; ?>
		</div>
		</form>
	</div>

	</div>
</div>

<!-- END BORDERED TABLE PORTLET-->
</div>
